Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn Instantclick into a module if it needs to be one #156

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Turn Instantclick into a module if it needs to be one #156

wants to merge 3 commits into from

Conversation

DecentM
Copy link

@DecentM DecentM commented May 10, 2017

A lot of web developers use RequireJs, Browserify or the like, so this PR enables Instantclick to be require-d or import-ed from Javascript and Typescript entry points.

Regular functionality is the same. If the script runs plainly in the browser, it will attach the InstantClick object to window as usual.

I also added a package.json to let people do npm install https://github.com/dieulot/instantclick and be on their way.

I wrote the version number as 4.0.0, so that probably needs to be changed before merging into master.

@rstacruz
Copy link

Really would love this. I've been using @egoist's fork (https://github.com/egoist/instantclick) just so I can use instantclick without bower.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants